package com.qingke.ssh.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "student_login")
public class StudentLogin {
	@Id
	@Column(name = "id")
	private int id;
	@Column(name = "code")
	private String code;
	@Column(name = "password")
	private String password;
	@Column(name = "status")
	private String status;
	@OneToOne(mappedBy = "studentLogin")
	private Student student;
	public int getId() {
		return id;
	}
	public String getCode() {
		return code;
	}
	public String getPassword() {
		return password;
	}
	public String getStatus() {
		return status;
	}
	public Student getStudent() {
		return student;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	
	
	
}
